<template>
    <div class="profile-info">
        <div class="body row">
            <div class="item" @click="toOrderPage">
                <div class="icon">
                    <img
                        :src="require('@/assets/icon/profile_info_order.png')"
                    />
                </div>
                <div class="text">订单</div>
            </div>

            <div class="item" @click="toOtherPage">
                <div class="icon">
                    <img
                        :src="require('@/assets/icon/profile_info_score.png')"
                    />
                </div>
                <div class="text">积分</div>
            </div>

            <div class="item" @click="toOtherPage">
                <div class="icon">
                    <img
                        :src="require('@/assets/icon/profile_info_coupon.png')"
                    />
                </div>
                <div class="text">卡券</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },

    methods: {
        toOrderPage() {
            this.$router.push({
                path: "/order"
            });
        },
        toOtherPage() {
            this.$showToast({
                title: "此功能尚未开放"
            });
        }
    }
};
</script>


<style lang="less" scoped>
.profile-info {
    background: #fff;
    padding: 30px 30px;
    margin-bottom: 20px;
    .body {
        background: linear-gradient(#eb8758, #ffc031);
        border-radius: 15px;
        padding: 40px 60px;
        justify-content: space-between;

        .item {
            color: #fff;
            text-align: center;
            font-weight: 600;

            .icon {
                width: 80px;
                margin-bottom: 10px;
            }
            .text {
                font-size: 32px;
            }
        }
    }
}
</style>